// a标签默认字体颜色
a.default {
	color: rgba(0, 0, 0, 0.85);

	&:hover {
		color: rgba(0, 0, 0, 0.85);
	}
}

a.processing {
	color: @primary-color;

	&:hover {
		color: @primary-color;
	}
}

a.error {
	color: @error-color;

	&:hover {
		color: @error-color;
	}
}

// 对齐方式
.text-right {
	text-align: right;
}

.text-center {
	text-align: center;
}

.text-left {
	text-align: left;
}

// 设置容器
.display-block {
	display: block;
}

.display-inline {
	display: inline;
}

.display-inline-block {
	display: inline-block;
}

// 弹性高度比例
.flex1 {
	flex: 1;
	min-height: 0;
}

// 弹性容器
.flex-container {
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: #fff;
}

.flex-container-nomal {
	display: flex;
	flex-direction: column;

	.auto-y {
		padding: 12px;
	}
}

// 弹性布局垂直居中
.flex-align-center {
	display: flex;
	align-items: center;
}

// 弹性布局 两端对齐
.flex-space-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

// 单行文本溢出隐藏以省略号展示
.over-ellipsis {
	// text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

// 溢出可滚动
.auto-x {
	overflow-x: auto;
	overflow-y: hidden;
}

.auto-y {
	overflow-x: hidden;
	overflow-y: auto;
}

// 鼠标移上显示手
.cursor-pointer {
	cursor: pointer;
}

// 顶部状态栏筛选条件
.top-tool-box {
	// height: 41px;
	// padding: 0 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;

	.ant-tag {
		cursor: pointer;
		border-color: transparent;
		background-color: rgba(0, 0, 0, 0.04);
	}
}

// 模块标题样式
.d-module-title {
	display: flex;
	align-items: center;
	font-size: 14px;
	cursor: text;

	b {
		font-weight: bold;
	}

	&::before {
		content: '';
		display: block;
		width: 2px;
		height: 14px;
		background: @primary-color;
		margin-right: 8px;
	}
}

// 字体颜色
.processing-color {
	color: @primary-color;
}

.success-color {
	color: @success-color;
}

.warning-color {
	color: @warning-color;
}

.error-color {
	color: @error-color;
}

.default-color {
	color: @default-color;
}

.light-gray-color {
	color: @light-gray;
}

// 字体大小
.font-size-small {
	font-size: 12px;
}

// padding
.pb0 {
	padding-bottom: 0;
}

.a-modal-dialog {
	.ant-modal-body {
		padding: 0;
		.flex-container-nomal {
			& > .flex1 {
				padding: 24px 24px 0;
			}
		}
	}
	// 抽屉
	.ant-drawer-body {
		padding: 0;
		.flex-container-nomal {
			& > .flex1 {
				padding: 24px 24px 0;
			}
		}
	}
}

// 对话框样式
.a-modal-tab-dialog {
	.ant-modal-header {
		padding: 0 24px;
		border: none;
	}

	.ant-modal-close-x {
		height: 56px;
		line-height: 56px;
	}

	.ant-modal-body {
		padding: 0;
	}
}

.a-drawer-tab-dialog {
	.ant-drawer-header {
		padding-top: 0;
		padding-bottom: 0;
		border-bottom: none;

		.ant-drawer-close {
			width: 56px;
			height: 56px;
			line-height: 56px;
			text-align: center;
			margin: 0 -24px 0 0;
		}
	}

	.ant-drawer-body {
		padding: 0;

		.auto-y {
			padding: 24px;
		}
	}
}

.a-modal-tab-title {
	height: 56px;

	.ant-card-head {
		border: none;
		padding: 0;
		margin-left: -24px;
	}

	.ant-card-bordered {
		border: none;
	}

	.ant-tabs-tab {
		height: 56px;
		padding: 17px 0;
	}
}

.a-modal-dialog-footer {
	padding: 12px 24px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	border-top: 1px solid @border-color-light;
}

// 时间轴内容样式1
.a-timeline-content {
	width: 300px;
	background: #ffffff;
	box-shadow: 0px 0px 8px rgba(7, 49, 91, 0.2);
	border-radius: 4px;
	padding: 10px;
}

// 文字按钮样式
.ant-btn-text.default-no {
	padding: 0;
	border: none;
	background: transparent;

	&:focus {
		background: none;
	}
}

// 分割线标题
.custon-split-line-title {
	flex: 1;
	padding: 0 24px;

	&:last-child {
		margin-right: -18px;

		.ant-divider-horizontal.ant-divider-with-text {
			padding-right: 0;
		}
	}

	.ant-divider-horizontal.ant-divider-with-text::after {
		border-top-color: rgba(0, 0, 0, 0.15);
	}

	.ant-divider-horizontal.ant-divider-with-text {
		font-size: 14px;
		color: rgba(0, 0, 0, 0.45);
		padding-right: 9px;

		.label {
			display: block;
			height: 22px;
			width: 22px;
			border-radius: 50%;
			border: solid 1px rgba(0, 0, 0, 0.15);
			line-height: 18px;
			text-align: center;
			margin-right: 9px;
		}

		.active {
			color: rgba(0, 0, 0, 0.85);

			.label {
				background: @primary-color;
				border-color: @primary-color;
				color: #fff;
			}
		}

		.operation-success {
			color: rgba(0, 0, 0, 0.85);

			.label {
				border-color: @light-blue;
				color: @light-blue;

				.anticon-check {
					font-size: 12px;
				}
			}
		}
	}
}

// 设置下拉组件默认
.default-menu-item .ant-dropdown-menu-item {
	text-align: center;
	min-width: 85px;
}

// 错误表单
.error {
	// 选择树
	&.ant-select-single:not(.ant-select-customize-input) .ant-select-selector {
		border-color: @error-color;

		&:hover {
			border-color: @error-color;
		}
	}

	&.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input) .ant-select-selector {
		border-color: @error-color;
		box-shadow: none;
	}

	// 文本框
	&.ant-input,
	&.ant-input-number {
		border-color: @error-color;

		&:hover {
			border-color: @error-color;
		}

		&:focus {
			border-color: @error-color;
			box-shadow: none;
		}
	}

	// 日期
	&.ant-picker {
		border-color: @error-color;

		&:hover {
			border-color: @error-color;
		}
	}

	&.ant-input-number,
	&.ant-picker-focused {
		border-color: @error-color;
		box-shadow: none;
	}
}

.file-upload-container.custom {
	.file-preview {
		display: flex;
		flex-wrap: wrap;
		gap: 12px;
		margin-bottom: 12px;
		.ant-image .ant-image-img {
			width: 100%;
			height: 100%;
			object-fit: contain;
			background: #eff1f7;
		}
	}
}

.file-upload-id-card-preview {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	.delete {
		display: none;
		position: absolute;
		right: 0;
		top: 0;
		width: 25px;
		height: 25px;
		line-height: 25px;
		text-align: center;
		background: rgba(0, 0, 0, 0.5);
		color: #fff;
		font-size: 12px;
	}
	&:hover .delete {
		display: block;
	}
}

// 租约变更详情
.a-card-title {
	.ant-card {
		border-radius: 2px 2px 0 0;
	}
	.ant-card-head {
		min-height: 56px;
		padding: 0;
		border: none;
	}
	.dialog-card-container.ant-card-contain-tabs .ant-tabs-tabpane {
		padding: 0;
	}
	.ant-card-body {
		overflow-x: hidden;
		overflow-y: auto;
		height: calc(60vh - 56px);
		padding: 0;
		display: flex;
		flex-direction: column;
		// padding: 20px 14px;
		// padding-bottom: 10px;
		.content {
			flex: 1;
			padding: 24px;
			overflow-y: auto;
		}
	}
	.house-label {
		background: rgba(2, 102, 255, 0.1);
		border-radius: 2px;
		color: #0266ff;
		font-size: 12px;
		padding: 0 5px;
		margin-right: 5px;
	}
}
.detail-details {
	.a-card-title {
		height: 100%;

		.ant-card-head {
			min-height: 56px;
			padding: 0;
			border: none;
		}

		.flex-container-nomal {
			display: flex;
			flex-direction: column;

			& > .flex {
				padding: 24px 24px 0;
			}
		}

		.ant-card-body {
			overflow-x: hidden;
			overflow-y: auto;
			height: calc(80vh - 56px);
			padding: 20px 14px;
			padding-bottom: 70px;
		}

		.dialog-card-container.ant-card-contain-tabs .ant-tabs-tabpane {
			padding: 0;
		}

		.title {
			font-size: 12px;
			font-family: SourceHanSansCN-Regular-, SourceHanSansCN-Regular;
			color: #0266ff;
			height: 24px;
			line-height: 23px;
			background: #e5efff;
			border-radius: 12px 12px 12px 12px;
			padding: 0 7px;
			opacity: 1;
			border: 1px solid #e7e8eb;
			margin-top: 5px;
			margin-bottom: 12px;
		}

		.green {
			color: #52c41a;
			background: #f6ffed;
			border: 1px solid #b7eb8f;
		}

		.red {
			color: #ff4d4f;
			background: #fff1f0;
			border: 1px solid #ffa39e;
		}

		.ant-descriptions-bordered {
			.ant-descriptions-item-label,
			.ant-descriptions-item-content {
				padding: 16px 14px;
			}
		}

		.time {
			position: absolute;
			top: 57px;
			right: 14px;
			color: @text-color-secondary !important;
		}

		.label {
			font-size: 14px;
			color: rgba(0, 0, 0, 0.45);
			display: inline-block;
			min-width: 70px;
		}

		.a-modal-dialog-footer {
			margin: 0;
			padding: 12px 24px;
			display: flex;
			align-items: center;
			justify-content: flex-end;
			border-top: 1px solid @border-color-light;
			z-index: 100;
			position: absolute;
			bottom: 0;
			width: 100%;
			background: white;
		}

		.ant-descriptions-item-content {
			display: flex;
			flex-wrap: wrap;
		}

		.ant-image {
			height: 104px;
			width: 104px;
			margin-right: 10px;
			margin-bottom: 10px;
		}
	}

	.a-modal-dialog-footer {
		margin: 0;
		padding: 0 24px;
		display: flex;
		align-items: center;
		justify-content: flex-end;
		border-top: none;
		border-top: 1px solid #f0f0f0;
		width: 100%;
		background: white;

		.ant-btn {
			margin: 12px 0;
		}
	}
}

.a-modal-class {
	height: 80vh;
}

.flex,
.actionBox {
	display: flex;
	align-items: center;
}

.actionBox {
	justify-content: center;
}

.assign-details {
	.ant-descriptions-item-content {
		display: flex;
		flex-wrap: wrap;
	}

	.ant-image {
		height: 104px;
		width: 104px;
		margin-right: 10px;
		margin-bottom: 10px;

		img {
			max-height: 100% !important;
		}
	}
}
